From: Florian Müllner Date: Sun, 19 Jul 2026 10:26:34 +0000 (+0200) Subject: js: Adjust to proxy wrapper change X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=90a63294012a57ebd82c11d507cf4cb62d783117;p=gnome-shell.git js: Adjust to proxy wrapper change Gio.DBus.makeProxyWrapper() now returns a Gio.DBusProxy subclass rather than a function (that returns a proxy object). That means it must now be invoked with `new`, so adjust the couple of places where we weren't doing that already. Part-of: (cherry picked from commit 7d8ff6b63ba908546e04d464cdd4681e125e5b12) --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index c01c6fe2e..2c6c61627 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -37,7 +37,7 @@ class ParentalControlsShield extends St.BoxLayout { this._requestExtensionCookie = null; - this._timerChildProxy = TimerChildProxy(Gio.DBus.system, + this._timerChildProxy = new TimerChildProxy(Gio.DBus.system, 'org.freedesktop.MalcontentTimer1', '/org/freedesktop/MalcontentTimer1', (proxy, error) => { diff --git a/js/gdm/realmd.js b/js/gdm/realmd.js index f2faf4ab5..04400d7ca 100644 --- a/js/gdm/realmd.js +++ b/js/gdm/realmd.js @@ -16,7 +16,7 @@ export class Manager extends Signals.EventEmitter { constructor() { super(); - this._aggregateProvider = Provider(Gio.DBus.system, + this._aggregateProvider = new Provider(Gio.DBus.system, 'org.freedesktop.realmd', '/org/freedesktop/realmd', this._reloadRealms.bind(this)); @@ -38,7 +38,7 @@ export class Manager extends Signals.EventEmitter { return; for (let i = 0; i < realmPaths.length; i++) { - Realm(Gio.DBus.system, + new Realm(Gio.DBus.system, 'org.freedesktop.realmd', realmPaths[i], this._onRealmLoaded.bind(this)); @@ -98,7 +98,7 @@ export class Manager extends Signals.EventEmitter { } release() { - Service(Gio.DBus.system, + new Service(Gio.DBus.system, 'org.freedesktop.realmd', '/org/freedesktop/realmd', service => service.ReleaseAsync().catch(logError)); diff --git a/js/misc/timeLimitsManager.js b/js/misc/timeLimitsManager.js index f980477bc..8b10190ec 100644 --- a/js/misc/timeLimitsManager.js +++ b/js/misc/timeLimitsManager.js @@ -185,7 +185,7 @@ export const TimeLimitsManager = GObject.registerClass({ this._estimatedTimes = []; this._timerChildProxyFactory = timerChildProxyFactory ?? { new: () => { - return TimerChildProxy(Gio.DBus.system, + return new TimerChildProxy(Gio.DBus.system, 'org.freedesktop.MalcontentTimer1', '/org/freedesktop/MalcontentTimer1', (proxy, error) => {